package com.example.smartstart.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author dlx
 * @since 2024-07-22
 */
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@ToString
@TableName("map_point")
public class MapPoint implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 打卡点经纬度
     */
    private Double lng;

    /**
     * 打卡点经纬度
     */
    private Double lat;

    /**
     * 奖励积分数
     */
    private Integer rewardPoints;

    /**
     * 打卡点名称
     */
    private String address;

    /**
     * 打卡点状态
     */
    private String status;

    /**
     * 打卡点备注
     */
    private String content;

    /**
     * 用户经纬度
     */
    @TableField(insertStrategy = FieldStrategy.NEVER,updateStrategy = FieldStrategy.NEVER,exist = false)
    private Double userLat;

    /**
     * 用户经纬度
     */
    @TableField(insertStrategy = FieldStrategy.NEVER,updateStrategy = FieldStrategy.NEVER,exist = false)
    private Double userLng;

    @TableField(insertStrategy = FieldStrategy.NEVER,updateStrategy = FieldStrategy.NEVER,exist = false)
    private Integer userId;
    @TableField(insertStrategy = FieldStrategy.NEVER,updateStrategy = FieldStrategy.NEVER,exist = false)
    private Integer offset;
    @TableField(insertStrategy = FieldStrategy.NEVER,updateStrategy = FieldStrategy.NEVER,exist = false)
    private Integer pageSize;

}
